# Maintainer: knuxify <knuxify@gmail.com>
# Reference: <https://postmarketos.org/devicepkg>
pkgname=device-samsung-baffinlite
pkgdesc="Samsung Galaxy Grand Neo"
pkgver=0.1
pkgrel=3
url="https://postmarketos.org"
license="MIT"
arch="armv7"
options="!check !archcheck"
depends="postmarketos-base linux-samsung-baffinlite mkbootimg mesa-dri-swrast"
makedepends="devicepkg-dev"
subpackages="$pkgname-nonfree-firmware:nonfree_firmware"
source="deviceinfo
	modules-load.conf"

build() {
	devicepkg_build $startdir $pkgname
}

package() {
	devicepkg_package $startdir $pkgname
}

nonfree_firmware() {
	pkgdesc="Wifi firmware"
	depends="firmware-samsung-baffinlite"
	mkdir "$subpkgdir"
}

sha512sums="8b4190f0c6696e55b98454c6f7cc0ec9e3b8572d47db3ac7e253144cdef0bf5cbd88d794246e4f3f3f46194b5a1d405510f741ac3360a62d23a250933c50bdf2  deviceinfo
af036fe35011db078379dbb2e8c16c86546f0a4fcb3d1bcee3502bb1ea5b38f3ec5a9fa8cd1ca8ed8b89592a7f572d6072781289845303e0bf85fc2de4ead9fb  modules-load.conf"
